<template>
  <div>
    <group>
      <cell title="修改密码" is-link @click.native="editPassword"></cell>
      <cell title="退出登录" is-link @click.native="loginOut"></cell>
    </group>
  </div>
</template>

<script>
import { Cell, Group } from 'vux'

export default {
  name: 'userSetting',
  components: {
    Cell, Group
  },
  methods: {
    loginOut() {
      location.href = `/user/sign_out?redirect_uri=${encodeURIComponent(location.host+"/#/oauth/home")}`
    },
    editPassword() {
      location.href = '/oauth/plus_password'
    }
  }
}
</script>
